<?php


namespace app\controller;


class AdminLoginLog
{
    public static function read(\app\model\AdminLoginLog $model)
    {
        return $model->read();
    }

    public static function getCount(\app\model\AdminLoginLog $model)
    {
        return $model->getCount();
    }

    public function search(\app\model\AdminLoginLog $model)
    {
        $model->account = input('param.account');
        $model->startDate = input('param.start_time');
        $model->endDate = input('param.end_time');
        record_log('查询账号 '.input('param.account').' '.input('param.start_time').' 到 '.input('param.end_time').' 的管理员登录日志');
        return $model->search();
    }
}